<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>超市 - 超市点单系统</title>
    <link rel="stylesheet" href="styles/main.css">
    <link rel="stylesheet" href="styles/login2.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <link rel="icon" href="/photo/Profile picture/log.ico" type="image/x-icon">
    <script src="/js/jquery-1.12.4.min.js"></script>
    <script src="/js/bootstrap.bundle.js"></script>
</head>

<body>
    <div class="login-container" id="app">
        <div class="login-box">
            <h2>超市</h2>
            <div class="form-tabs">
                <button class="tab-btn active" data-form="login">登录</button>
                <button class="tab-btn" data-form="register">注册</button>
            </div>

            <!-- 登录表单 -->
            <form id="loginForm" class="form active">
                <div class="form-group">
                    <i class="fas fa-phone"></i>
                    <input type="text" id="phonenumber" required placeholder="电话号码">
                    <div class="error-message"></div>
                </div>
                <div class="form-group">
                    <i class="fas fa-lock"></i>
                    <input type="password" id="password" required placeholder="密码">
                    <div class="error-message"></div>
                </div>
                <div class="form-group remember-me">
                    <label>
                        <input type="checkbox" id="remember"> 记住我
                    </label>
                </div>
                <button type="submit" class="login-btn">登录</button>
                <div class="form-footer">
                    <a href="#" class="forgot-password">忘记密码？</a>
                </div>
            </form>

            <!-- 注册表单 -->
            <form id="registerForm" class="form">
                <div class="form-group">
                    <i class="fas fa-user"></i>
                    <input type="text" id="regUsername" required placeholder="用户名">
                    <div class="error-message"></div>
                </div>
                <div class="form-group">
                    <i class="fas fa-venus-mars"></i>
                    <select id="regGender" required>
                        <option value="">请选择性别</option>
                        <option value="1">男</option>
                        <option value="2">女</option>
                    </select>
                    <div class="error-message"></div>
                </div>
                <div class="form-group">
                    <i class="fas fa-phone"></i>
                    <input type="tel" id="regPhone" required placeholder="手机号码">
                    <div class="error-message"></div>
                </div>
                <div class="form-group">
                    <i class="fas fa-lock"></i>
                    <input type="password" id="regPassword" required placeholder="密码">
                    <div class="error-message"></div>
                </div>
                <div class="form-group">
                    <i class="fas fa-lock"></i>
                    <input type="password" id="regConfirmPassword" required placeholder="确认密码">
                    <div class="error-message"></div>
                </div>
                <button type="submit" class="register-btn">注册</button>
            </form>
        </div>
    </div>

    <script src="/js/login.js"></script>
</body>

</html>